package com.sun.dailyprj.designpatterns.proxy;

/*
 * =====================================================================================
 * Summary:
 *
 * File: ProxyShopPhone.java
 * Author: Yanpeng.Sun
 * Create: 2019/10/31 16:34
 * =====================================================================================
 */
public class ProxyShopPhone implements IShopPhone{

    IShopPhone mTarget;

    /**
     * 目标
     */
    public ProxyShopPhone(IShopPhone target) {
        this.mTarget = target;
    }

    @Override
    public void shopPhone(String str) {
        System.out.println("-----start----");
        mTarget.shopPhone(str);
        System.out.println("-----end----");
    }
}
